package org.example.thread.testStatus;

/**
 * @author liyishan
 * @date 2023/8/2 14:45
 * @apiNote
 */

public class WaitingState implements Runnable{
    @Override
    public void run() {
        while(true){
            synchronized(WaitingState.class){
                try{
                    WaitingState.class.wait();
                }catch (InterruptedException e){
                    e.printStackTrace();
                }
            }
        }

    }
}
